﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace MyWcfLib
{
	[ServiceContract]
	public interface IMyWcfServiceControl
	{
		[OperationContract]
        MyWcfServiceResponse ExecuteCommand(MyWcfServiceCommand command);
        [OperationContract]
        MyWcfServiceResponse ExecuteRead(MyWcfServiceCommand command);
	}

	[DataContract]
	public class MyWcfServiceCommand
	{
		[DataMember]
		public string Command { get; set; }
        [DataMember]
        public string slTemp { get; set; }
        [DataMember]
        public string shTemp { get; set; }
        [DataMember]
        public string scTemp { get; set; }
        [DataMember]
        public string swspd { get; set; }
        [DataMember]
        public string API { get; set; }
        [DataMember]
        public string areaID { get; set; }
        [DataMember]
        public string deviceInst{ get; set; }
	}

	[DataContract]
	public class MyWcfServiceResponse
	{
		[DataMember]
		public string Response { get; set; }
        [DataMember]
        public string slTemp { get; set; }
        [DataMember]
        public string shTemp { get; set; }
        [DataMember]
        public string scTemp { get; set; }
        [DataMember]
        public string swspd { get; set; }
        [DataMember]
        public string API { get; set; }
        [DataMember]
        public string areaID { get; set; }
        [DataMember]
        public string deviceInst { get; set; }
	}


}
